package com.zuipin.service.impl;

import java.util.List;

import javax.annotation.Resource;

import org.springframework.stereotype.Service;

import com.zuipin.entity.SysUserUnit;
import com.zuipin.mapper.SysUserUnitMapper;
import com.zuipin.service.ISysUserUnitService;
import com.zuipin.util.Pagination;

/**
 * 用户-组织 关系服务实现
 * 
 * @ClassName: SysUserUnitSer5viceImpl
 * @Description: TODO
 * @author  robot
 * @date 2017年09月147日 09:21:09
 */
@Service
public class SysUserUnitServiceImpl implements ISysUserUnitService {
	
	@Resource
	private SysUserUnitMapper sysUserUnitMapper;
	
	@Override
	public SysUserUnit findById( Integer id) {
		return sysUserUnitMapper.findById(id);
	}
	
	@Override
	public void insert(SysUserUnit sysUserUnit) {
		sysUserUnitMapper.insert(sysUserUnit);
	}
	
	@Override
	public void update(SysUserUnit sysUserUnit) {
		sysUserUnitMapper.update(sysUserUnit);
	}
	
	@Override
	public void delete( Integer id) {
		sysUserUnitMapper.delete(id);
		
	}
	
	@Override
	public List<SysUserUnit> seachSysUserUnit(SysUserUnit sysUserUnit, Pagination page) {
		return sysUserUnitMapper.seachSysUserUnit(sysUserUnit, page);
	}
	
}
